home *** CD-ROM | disk | FTP | other *** search
- -- background: 47042 from stack: in
- -- bmap block id: 36625
- -- flags: 0000
- -- background id: 0
- -- name:
- ----- HyperTalk script -----
- on newStack
- extend
- end newStack
-
- on extend
- -- type "extend" into the message box and press return to make
- -- three months worth of new cards.
- if the name of this stack contains "stack ideas"
- then
- answer "Please make a new stack before extending it." with "OK"
- else
- answer "Make three months more of new cards?" with "OK" or "Cancel"
- if it is "Cancel" then exit extend
- go to last card of this background
- put getStartDate() into start --what date to begin on
- if start is "Cancel" then exit extend
- put 60*60*24 into OneDay --seconds in a day
- repeat with cnt = 1 to (365 div 4) --three months
- put start into it --a copy
- convert it to long date
- put it into field "Date"
- add OneDay to start
- doMenu New Card
- end repeat
- convert start to long date --fix the last card
- put start into field "Date"
- end if
- end extend
-
- function getStartDate
- -- end of stack or today, whichever is newer
- get field "Date"
- if it is empty then put the short date into it
- convert it to seconds --so we can compare
- put the short date into today
- convert today to seconds
- if today < 2587766400 then
- answer "Set the Control Panel to today's date" with "OK"
- return "Cancel"
- end if
- if it >= today then return it --calendar already beyond today
- convert it to short date
- answer "Start from which date?" with it or the short date or "Cancel"
- if it is "Cancel" then return it
- convert it to seconds
- return it
- end getStartDate
-
- on openBackground
- push recent card
- end openBackground
-
-
- -- part 1 (field)
- -- low flags: 00
- -- high flags: 4000
- -- rect: left=338 top=68 right=300 bottom=485
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 10
- -- style flags: 0
- -- line height: 13
- -- part name:
-
-
- -- part 2 (field)
- -- low flags: 00
- -- high flags: 4000
- -- rect: left=69 top=55 right=302 bottom=329
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 10
- -- style flags: 0
- -- line height: 13
- -- part name:
-
-
- -- part 3 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=265 top=313 right=340 bottom=293
- -- title width / last selected line: 0
- -- icon id / first selected line: 8419 / 8419
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Next
- ----- HyperTalk script -----
- on mouseUp
- visual effect wipe left
- go to next card
- end mouseUp
-
-
-
- -- part 4 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=239 top=313 right=340 bottom=268
- -- title width / last selected line: 0
- -- icon id / first selected line: 17779 / 17779
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Prev
- ----- HyperTalk script -----
- on mouseUp
- visual effect wipe right
- go to prev card
- end mouseUp
-
-
-
-
- -- part 5 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=476 top=314 right=339 bottom=507
- -- title width / last selected line: 0
- -- icon id / first selected line: 7417 / 7417
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Return
- ----- HyperTalk script -----
- on mouseUp
- visual effect iris close
- pop card
- end mouseUp
-
-
-
- -- part 7 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=149 top=301 right=332 bottom=184
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name:
- ----- HyperTalk script -----
- on mouseUp
- get the selection
- if it is empty then get the message
- if it is empty then ask "Dial what number?"
- if it is not empty then
- push this card
- visual effect zoom open
- go to stack "Phone"
- dial it
- pop card
- end if
- end mouseUp
-
-
-
- -- part 8 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=112 top=301 right=332 bottom=145
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Address
- ----- HyperTalk script -----
- on mouseUp
- get the selection
- visual effect zoom open
- go to "Address"
- if it is not empty then find it
- end mouseUp
-
-
-
- -- part 9 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=76 top=301 right=330 bottom=107
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Calendar
- ----- HyperTalk script -----
- on mouseUp
- get the seconds
- convert it to dateItems
- put ((item 1 of it) - 1987) *2 into whichSix
- if item 2 of it > 6 then add 1 to whichSix
- visual effect zoom open
- if whichSix < 1 then go card 1 of stack "Datebook"
- else if whichSix > 5 then go card 5 of stack "Datebook"
- else
- go to card whichSix of stack "Datebook"
- send "bracketWeek" && the seconds to this card
- end if
- end mouseUp
-
-
-
- -- part 10 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=44 top=301 right=330 bottom=74
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Datebook/Active
- ----- HyperTalk script -----
- on mouseUp
- answer "This is a Daily Calendar"with OK
- end mouseUp
-
-
-
-
- -- part 11 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=3 top=299 right=333 bottom=42
- -- title width / last selected line: 0
- -- icon id / first selected line: 1011 / 1011
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Home
- ----- HyperTalk script -----
- on mouseUp
- visual effect iris close
- go "Home"
- end mouseUp
-
-
-
- -- part 12 (field)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=6 top=24 right=51 bottom=395
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 18
- -- style flags: 256
- -- line height: 24
- -- part name: Date
-
-
- -- part 14 (button)
- -- low flags: 00
- -- high flags: 8004
- -- rect: left=438 top=294 right=309 bottom=484
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: Extend
- ----- HyperTalk script -----
- on mouseUp
- extend
- end mouseUp
-
-